<template>
  <div class="order-manage">
    <!-- <div class="order-nav">
      <router-link :to="'/registrar/studentsSignUp/index/'" class="link-type">
        <el-button style="margin:0 30px"  type="primary">报名/续费</el-button>
      </router-link>
      <router-link :to="'/financial/orderManage/transform_course'" class="link-type">
        <el-button style="margin-right:30px" type="primary">转课</el-button> 
      </router-link>
      <router-link :to="'/financial/orderManage/refund_course'" class="link-type">
        <el-button  type="primary">退课</el-button> 
      </router-link>
    </div> -->
    <div class="order-main">
      <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
        <el-tab-pane label="订单列表" name="one">
          <OrderList v-if="activeName === 'one'" />
        </el-tab-pane>
        <!-- <el-tab-pane label="一对一试听" name="two">
        <AllTrail :selectedClue="selectedClue" v-if="activeName === 'two'" />
      </el-tab-pane> -->
      </el-tabs>
    </div>
  </div>
</template>

<script setup>
import OrderList from './orderList.vue'
//tabs切换
const activeName = ref('one')
const handleClick = (tab) => {
  // console.log(tab)
  activeName.value = tab.props.name
}
</script>

<style lang="scss" scoped>
.order-manage {
  height: 100%;
  // .order-nav {
  //   display: flex;
  //   // justify-content: space-around;
  //   align-items: center;
  //   height: 100px;
  //   margin-bottom: 20px;
  //   border: 1px solid rgb(232.8, 233.4, 234.6);
  // }
  .order-main {
    padding: 20px 10px;
    // border: 1px solid rgb(232.8, 233.4, 234.6);
  }
}
</style>
<style lang="scss" scoped>
:deep(.demo-tabs) {
  .el-tabs__content {
    /* padding: 20px; */
    overflow: visible;
  }
}

:deep(.el-tabs__nav-scroll) {
  .el-tabs__nav {
    // display: flex !important;
    // justify-content: flex-end !important;
    .el-tabs__item {
      font-size: 16px;
      padding: 0 20px;
    }
  }
}
</style>